package com.wmyg.antifake.dao;

import com.wmyg.antifake.bean.Qrcode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface QrcodeMapper {

    int insertOrUpdate(Qrcode qrcode);

    List<Qrcode> findQrCode(Qrcode qrcode);

    Qrcode findPrimaryId(Long qrCodeId);

    int updateQrcode(Qrcode qrcode);

    int deleteQrCode(Long qrCodeId);

    List<Qrcode>  findQrCodeAndFactory(Qrcode qrcode);

    Map<String, BigDecimal> findQrCodeNum(Long qrCodeId);

    Qrcode findProIdANdProBan(Qrcode qrcode);
}
